#include <iostream>
#include <memory>
#include <vector>
#include <limits>
#include <algorithm>
#include <unistd.h>
#include <chrono>

using namespace std;

// using array instead of int[] like array is recommended for safety

constexpr int func(){
    return 5;
}
int array_test(){
    array<int, 5> arr{1,2,3,4,5};
    for (auto i=arr.begin(); i != arr.end(); i++)
        cout<<*i<<" ";
    cout<<endl;
    cout<<arr.size()<<" "<<arr.max_size()<<" "<<arr.empty()<<endl;
    arr.fill(10);
    for (auto i=arr.begin(); i != arr.end(); i++)
        cout<<*i<<" ";
    cout<<endl;

    array<int, 5> arr2{1,2,3,4,5};
    cout<<(arr == arr2)<<endl;
    arr2.fill(10);
    cout<<(arr == arr2)<<endl;

    for (auto i = arr2.rbegin(); i!=arr2.rend(); i++)
        cout<<*i<<" ";
    cout<<endl;


}
